package com.mybatiscore.Mapper;

import com.mybatiscore.POJO.TStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TStudentMapper {
    //一、多对一
        //第一种：一条sql，级联属性映射
    TStudent selectById(@Param("id") Integer id);

    //association
    TStudent selectById1(Integer id);

    //分步查询
    TStudent selectById2(@Param("id") Integer id);

    //二、一对多
    List<TStudent> selectTStudentFb(Integer cid);

}
